﻿//
// Created by francklinson on 2021/3/14.
//

#include <iostream>
int main()
{
    using namespace std;
    char ch;
    int count = 0;
    cin.get(ch);       // attempt to read a char
    while (!cin.fail()) // test for EOF
    {
        cout << ch;   // echo character
        ++count;
        cin.get(ch);  // attempt to read another char
    }
    cout << endl << count << " characters read\n";
    return 0;
}